import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        redirect: "/myIndex"
    },
    {
        path: '/myIndex',
        name: '首页',
        component: () =>
            import ( /* webpackChunkName: "myIndex" */ '../views/myIndex.vue'),
        icon: "iconfont icon-shouye-shouye"
    },
    {
        path: '/myTitle',
        name: '课程列表',
        component: () =>
            import ( /* webpackChunkName: "myTitle" */ '../views/myTitle.vue'),
        icon: "iconfont icon-fenlei"
    },
    {
        path: '/myCoures',
        name: '我的课程',
        component: () =>
            import ( /* webpackChunkName: "myCoures" */ '../views/myCoures.vue'),
        icon: "iconfont icon-zhuanyeyukecheng"

    },
    {
        path: '/myMine',
        name: '我的',
        component: () =>
            import ( /* webpackChunkName: "myMine" */ '../views/myMine.vue'),
        icon: "iconfont icon-boshimao1"
    },
    {
        path: '/myLogin',
        name: '登录',
        component: () =>
            import ( /* webpackChunkName: "myLogin" */ '../views/myLogin.vue')
    },
    {
        path: '/setUp',
        name: '设置',
        component: () =>
            import ( /* webpackChunkName: "setUp" */ '../views/setUp.vue')
    },
    {
        path: '/myRegister',
        name: '注册',
        component: () =>
            import ( /* webpackChunkName: "myRegister" */ '../views/myRegister.vue')
    },
    {
        path: '/couresVideo',
        name: '视频',
        component: () =>
            import ( /* webpackChunkName: "couresVideo" */ '../views/couresVideo.vue')
    },
    {
        path: '/myTeacher',
        name: '教师',
        component: () =>
            import ( /* webpackChunkName: "myTeacher" */ '../views/myTeacher.vue')
    },
    {
        path: '/CommenT',
        name: '评论',
        component: () =>
            import ( /* webpackChunkName: "CommenT" */ '../views/CommenT.vue')
    },
    {
        path: '/myWeather',
        name: '天气',
        component: () =>
            import ( /* webpackChunkName: "myWeather" */ '../views/myWeather.vue')
    },


]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router